<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

<h:head>
<link rel="Stylesheet" href="../resources/stylesheet/uistyle.css"></link>
<link rel="Stylesheet" href="../resources/javascript/css/custom-theme/jquery-ui-1.8.16.custom.css"></link>
<script type="text/javascript" src="../resources/javascript/js/jquery-1.6.2.min.js"></script>
<script type="text/javascript" src="../resources/javascript/js/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="../resources/javascript/myscript.js"></script>
</h:head>
<h:body>
<h:form>
<div class="top-panel-text">
Welcome #{usernew.accessToken}
<!-- <ui:include src="/snippets/header.xhtml" class="top-panel-logo"></ui:include> -->
<a id="sgninlnk" href="#" onclick="openDialog()">#{msgs.uisigninlnk}</a>
<!-- <h:link id="sgninlnk1" value="#{msgs.uisigninlnk}"  onclick="openDialog();"/>-->&nbsp;
<h:commandLink value="#{msgs.uirgstrlnk}" action="gotoregister" />
</div>
 	<script>
	$(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		$( "#dialog:ui-dialog" ).dialog( "destroy" );
	
		$( "#dialog-modal" ).dialog({
			width:340,
			modal: true,
			autoOpen:false,
			resizable:false,
			draggable:true
		}).load("signin.jsf");

	});
	</script>
	<div id="dialog-modal"></div>
<table id="menucntnttbl">
<tr>
<td width="0%"><ui:insert name="leftmenu"></ui:insert></td>
<td width="100%"><ui:insert name="content">Content</ui:insert></td>
</tr>
</table>
<ui:insert name="footer">Footer</ui:insert>

</h:form>
</h:body>
</html>